<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.xuebang.admin.entity.OperatorRules"%>
<%@ page language="java" import="com.xuebang.admin.entity.Operator"%>
<%
	Operator currentOperator = (Operator) request.getSession()
			.getAttribute("currentOperator");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
 	// 禁用页面缓存
	response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
	response.setHeader("Pragma","no-cache"); //HTTP 1.0
	response.setDateHeader ("Expires", 0); //prevents caching at the proxy server  
%>
<!doctype html>
<html>
<head>
<title>黑龙江省大学生创业服务频道管理系统</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" href="<%=basePath%>/favicon.ico" />
<link href="<c:url value="/stylesheets/displaytag.css"/>"
	rel="stylesheet" type="text/css" />
<link href="<c:url value="/stylesheets/common.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/index.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/monitor.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/resource.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/report.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/event.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/account.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/stylesheets/header.css"/>" rel="stylesheet"
	type="text/css" />

<script src="<c:url value="/js/jquery-1.3.1.min.js"/>"></script>
<script src="<c:url value="/javascripts/datepicker/WdatePicker.js" />"></script>
<%-- <script src="<c:url value="/javascripts/iaas_base.js" />"></script> --%>
<script src="<c:url value="/javascripts/jquery.boxy.js"/>"></script>
<script src="<c:url value="/javascripts/jquery.passwordStrength.js"/>"></script>
<script src="<c:url value="/javascripts/dtree.js"/>"></script>
<script src="<c:url value="/javascripts/tree.js"/>"></script>

<script type="text/javascript">

	function openWindow(){
		var url = "<%=basePath%>db/backup";
		var HTML = '<div class="Popup">';
		HTML += '<div class="Popupheader"></div>';
		HTML += '<div class="Popup_A"><div class="Popup_A_1">';
				HTML += '<div class="Popup_title"><h2>数据备份</h2></div>';
				HTML += '<iframe width="100%" height="400" src="'+ url +'" scrolling="no" frameborder="0"></iframe>';
				HTML += '</div></div>'
				HTML += '<div class="Popupfoot"><img src="<%=basePath%>images/Popupbg01_footer.png" width="550" height="15"></div></div>';
		$.dialog({skin:false,content:HTML});
	}

	function toBackup(){
		// 备份窗口打开
		openWindow();
	}
</script>
</head>
<body>
	<!--头部开始-->
	<div id="iaas_layout_top">
		<div class="header">
			<div class="logo">
				<h1  style="color:white">创业服务频道</h1>
				<!-- <img src="<c:url value="/images/logo.gif"/>"> -->
			</div>
			<%-- <div class="arrowdown">
				<img src="<c:url value="/images/arrrow-down.gif"/>">
			</div> --%>
			<ul class="menu">
				<li class="block gzt">
					<p><a href="<%=basePath%>article/operate">文章管理</a></p> <!--隐藏的子导航栏-->
					<div class="nav">
						<ul class="first">
							<li class="hover click">
								<a href="<%=basePath%>article/operate" class="first-main"><span class="img"> <!-- 图标 --> </span> 文章列表</a>
							</li>
							<li class="hover click">
								<a href="<%=basePath%>article/add" class="first-main"><span class="img"> <!-- 图标 --></span> 新增文章</a></li>
							<li class="hover click">
								<a href="<%=basePath%>article/recycleBin" class="first-main"><span class="img"> <!-- 图标 --> </span> 回收站</a>
							</li>
						</ul>
					</div>
				</li>
				<li class="block zhgl">
					<p><a href="<%=basePath%>account/">系统管理</a></p>
					<!--隐藏的子菜单-->
					<div class="nav">
						<ul class="first">
							<li class="hover click">
								<a href="<%=basePath%>account/index" class="first-main">
									<span class=img> <!--图标--> </span> 账户管理
								</a> 
							</li>
							<li class="hover click">
								<a href="<%=basePath%>account/user" class="first-main">
									<span class=img> <!--图标--> </span>用户管理
								</a>
							</li>
							<li class="hover click">
								<a href="<%=basePath%>account/role" class="first-main">
									<span class=img> <!--图标--> </span> 角色管理
								</a> 
							</li>
							<!-- <li class="hover click">
								<a class="first-main" onclick="toBackup();">
									<span class=img> 图标 </span> 数据库备份
								</a>
							</li> -->
						</ul>
					</div>
				</li>
				<li class="block kysq">
					<p><a href="<%=basePath%>slide/operate">幻灯片管理</a></p>
				</li>
				<li class="block sjgl">
					<p><a href="<%=basePath%>suggestion/operate">问题管理</a></p>
				</li>
				<li class="block zygl">
					<p><a href="<%=basePath%>friends/operate">友情链接</a></p>
				</li>
			</ul>
			<ul class="user-menu">
				<li class="user-menu-item"><a href="<%=basePath%>account/welcome"><img
						src="<c:url value="/images/home.gif"/>"> </a></li>
				<li class="user-menu-item"><a href="#"><img
						src="<c:url value="/images/person.gif"/>"> </a> <!--隐藏的副导航菜单-->
					<div class="navbar hidden"
						style="width:300px;position: absolute;left: -129px;top: 50px;">
						<ul>
							<li><a href="#"><%=currentOperator.getName()%></a></li>
							<%-- <li><a href="#"><%=currentOperator.getPosition().getDepartment().getName()%></a>
							</li>
							<li><a href="#"><%=currentOperator.getPosition().getName()%></a>
							</li> --%>
							<li><a href="#"><%=currentOperator.getOperatorGroups().getGroupName()%></a>
							</li>
						</ul>
						<b><img src="<c:url value="/images/arrow_up.gif"/>"> </b>
					</div></li>

				<li class="user-menu-item"><a href="#"><img
						src="<c:url value="/images/close.gif" />"
						onclick="window.location.href='<%=basePath%>/account/logout'">
				</a></li>
			</ul>
		</div>
	</div>
	<!--头部结束-->